#if !defined(AFX_TILESETVIEW_H__DC2E9461_A2B4_4179_973D_7F5DEA415DF8__INCLUDED_)
#define AFX_TILESETVIEW_H__DC2E9461_A2B4_4179_973D_7F5DEA415DF8__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TilesetView.h : header file
//
#include "EditorDoc.h"

/////////////////////////////////////////////////////////////////////////////
// CTilesetView view

class CTilesetView : public CScrollView
{
protected:
	CTilesetView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CTilesetView)

// Attributes
public:
	CEditorDoc* GetDocument();

	typedef CTilesetKit::TILE TILE;

	void Resize();
	
protected:
	CBrush m_brBkgnd;
	CPen m_pnLine;

// Operations
public:

	int HitTest(const CPoint& pt);

protected:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTilesetView)
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	virtual void OnInitialUpdate();     // first time after construct
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CTilesetView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CTilesetView)
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TILESETVIEW_H__DC2E9461_A2B4_4179_973D_7F5DEA415DF8__INCLUDED_)
